<template>
  <div class="HomeHead">
    <van-icon @click="$router.push('/cate')"
              class="fenlei"
              class-prefix="icon"
              name="fenleisousuo" />
    <div class="search"
         @click="$router.push('/search')">
      <van-icon name="search"></van-icon>
      <span>搜索商品/店铺</span>
    </div>
    <van-icon class="kefu"
              class-prefix="icon"
              name="kefu"></van-icon>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.HomeHead {
  height: 50px;
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 14px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #fff;
  .fenlei {
    margin: 0 12px;
    font-size: 18px;
    font-weight: bold;
  }
  .search {
    display: flex;
    align-items: center;
    background-color: rgba(153, 153, 153, 0.13);
    flex: 1;
    height: 30px;
    border-radius: 15px;
    color: #666;
    .van-icon {
      padding: 0 8px;
      font-size: 20px;
    }
  }
  .kefu {
    margin: 0 12px;
    font-size: 22px;
  }
}
</style>
